#ifndef CIPODCHIP_H_
#define CIPODCHIP_H_

#include "CIpodLib.h"

#ifdef __cplusplus
extern "C"{
#endif

class CIpodChip {
public:
    static int init();
    static int deinit();
    static int send(uint8 regvalue, const uint8 *buf, uint16 len);
    static int recv(uint8 regvalue, uint8 *buf, uint16 len);

    static void MFiPlatform_CreateSignature(
        const uint8_t *	inDigestPtr,
        size_t			inDigestLen,
        uint8_t **		outSignaturePtr,
        size_t *		outSignatureLen );
    static void MFiPlatform_CopyCertificate( uint8_t **outCertificateSNPtr, uint8_t **outCertificatePtr, size_t *outCertificateLen );
    static void MFiPlatform_Initialize();
    static void debugHexBuf(const char *tag, const uint8 *data, uint16 len);
    

private:
    static int s_ChipFd;
};

#ifdef __cplusplus
}
#endif
#endif /* CIPODCHIP_H_ */
